package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.product.LimitSalesStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 限时折扣信息表实体类<br>
 * 对应的表为：pro_limit_sales<br>
 * 
 * @author pbuilder generated
 * @date 2019-09-24 10:22:32
 * @company sgy
 * @version 2.0
 */
@TableName("pro_limit_sales")
@ApiModel(description = "限时折扣信息表")
public class LimitSalesEntity {

    /**  */
	protected String id;

    /** 活动名称 */
	@ApiModelProperty("活动名称")
	protected String title;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 商品ID */
	@ApiModelProperty("商品ID")
	protected String spuId;

    /**  */
	protected String skuId;

    /** 开始时间 */
	@ApiModelProperty("开始时间")
	protected LocalDateTime beginDate;

    /** 结束时间 */
	@ApiModelProperty("结束时间")
	protected LocalDateTime endDate;

    /** 折扣 */
	@ApiModelProperty("折扣")
	protected BigDecimal discount;

    /** 折扣金额 */
	@ApiModelProperty("折扣金额")
	protected BigDecimal discountFee;

    /** [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE */
	@ApiModelProperty("[枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE")
	protected LimitSalesStatus status;

    /** 活动说明 */
	@ApiModelProperty("活动说明")
	protected String remarks;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String modifiedBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected Boolean del;

    /**  */
	protected String delBy;

    /**  */
	protected LocalDateTime delTime;

	/**
	 * 构造一个空限时折扣信息表实体对象
	 */
	public LimitSalesEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个限时折扣信息表实体对象
	 * 
	 * @param other 其它对象
	 */
	public LimitSalesEntity(LimitSalesEntity other){
		super();
     	this.id = other.id;
     	this.title = other.title;
     	this.busdId = other.busdId;
     	this.merchantId = other.merchantId;
     	this.spuId = other.spuId;
     	this.skuId = other.skuId;
     	this.beginDate = other.beginDate;
     	this.endDate = other.endDate;
     	this.discount = other.discount;
     	this.discountFee = other.discountFee;
     	this.status = other.status;
     	this.remarks = other.remarks;
     	this.createdBy = other.createdBy;
     	this.createdTime = other.createdTime;
     	this.modifiedBy = other.modifiedBy;
     	this.modifiedTime = other.modifiedTime;
     	this.del = other.del;
     	this.delBy = other.delBy;
     	this.delTime = other.delTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取活动名称
	 * 
	 * @return title 活动名称
	 */
	public String getTitle() {
		return title;
	}
  	
	/**
	 * 设置活动名称
	 * 
	 * @param title 活动名称
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取商品ID
	 * 
	 * @return spuId 商品ID
	 */
	public String getSpuId() {
		return spuId;
	}
  	
	/**
	 * 设置商品ID
	 * 
	 * @param spuId 商品ID
	 */
	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	/**
	 * 获取
	 * 
	 * @return skuId 
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param skuId 
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取开始时间
	 * 
	 * @return beginDate 开始时间
	 */
	public LocalDateTime getBeginDate() {
		return beginDate;
	}
  	
	/**
	 * 设置开始时间
	 * 
	 * @param beginDate 开始时间
	 */
	public void setBeginDate(LocalDateTime beginDate) {
		this.beginDate = beginDate;
	}

	/**
	 * 获取结束时间
	 * 
	 * @return endDate 结束时间
	 */
	public LocalDateTime getEndDate() {
		return endDate;
	}
  	
	/**
	 * 设置结束时间
	 * 
	 * @param endDate 结束时间
	 */
	public void setEndDate(LocalDateTime endDate) {
		this.endDate = endDate;
	}

	/**
	 * 获取折扣
	 * 
	 * @return discount 折扣
	 */
	public BigDecimal getDiscount() {
		return discount;
	}
  	
	/**
	 * 设置折扣
	 * 
	 * @param discount 折扣
	 */
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	/**
	 * 获取折扣金额
	 * 
	 * @return discountFee 折扣金额
	 */
	public BigDecimal getDiscountFee() {
		return discountFee;
	}
  	
	/**
	 * 设置折扣金额
	 * 
	 * @param discountFee 折扣金额
	 */
	public void setDiscountFee(BigDecimal discountFee) {
		this.discountFee = discountFee;
	}

	/**
	 * 获取[枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 * 
	 * @return status [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 */
	public LimitSalesStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 * 
	 * @param status [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE
	 */
	public void setStatus(LimitSalesStatus status) {
		this.status = status;
	}

	/**
	 * 获取活动说明
	 * 
	 * @return remarks 活动说明
	 */
	public String getRemarks() {
		return remarks;
	}
  	
	/**
	 * 设置活动说明
	 * 
	 * @param remarks 活动说明
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return del 
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置
	 * 
	 * @param del 
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

    public String toString() {
		return new StringBuilder().append("LimitSalesEntity{").
			append("id=").append(id).
			append(",title=").append(title).
			append(",busdId=").append(busdId).
			append(",merchantId=").append(merchantId).
			append(",spuId=").append(spuId).
			append(",skuId=").append(skuId).
			append(",beginDate=").append(beginDate).
			append(",endDate=").append(endDate).
			append(",discount=").append(discount).
			append(",discountFee=").append(discountFee).
			append(",status=").append(status).
			append(",remarks=").append(remarks).
			append(",createdBy=").append(createdBy).
			append(",createdTime=").append(createdTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",del=").append(del).
			append(",delBy=").append(delBy).
			append(",delTime=").append(delTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public LimitSalesEntity copy() {
		return new LimitSalesEntity(this);
	}

	/**  */
	public static final String COL_ID = "id";

    /** 活动名称 */
	public static final String COL_TITLE = "title";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 商品ID */
	public static final String COL_SPU_ID = "spu_id";

    /**  */
	public static final String COL_SKU_ID = "sku_id";

    /** 开始时间 */
	public static final String COL_BEGIN_DATE = "begin_date";

    /** 结束时间 */
	public static final String COL_END_DATE = "end_date";

    /** 折扣 */
	public static final String COL_DISCOUNT = "discount";

    /** 折扣金额 */
	public static final String COL_DISCOUNT_FEE = "discount_fee";

    /** [枚举]活动状态：0-可用-NORMAL、1-禁用-DISABLE */
	public static final String COL_STATUS = "status";

    /** 活动说明 */
	public static final String COL_REMARKS = "remarks";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_BY = "del_by";

    /**  */
	public static final String COL_DEL_TIME = "del_time";
}
